<?php $this->section->begin('breadcrumb')?>
<div id="global-breadcrumb">
	<ul>
		<li class="current">Thư viên ảnh</li>
	</ul>
</div>
<?php $this->section->end()?>
<?php $this->content->begin()?>
<div class="widget-shell inner-shadow">
	<div class="widget-header">
		<h2>Thư viện ảnh</h2>
	</div>
	<div class="widget-body" style="padding:40px 0 35px 41px">
		<ul class="gallery">
			<li>
				<a class="add-image" href="<?php echo $this->url->action("create")?>">Thêm thư viện ảnh</a>
			</li>
			<?php foreach ($galleryList as $gallery):?>
			<li>
				<img src="<?php echo $gallery->image?>" alt="<?php echo $gallery->name?>" />
				<div class="action">
					<a href="<?php echo $gallery->image?>" class="zoom" title="<?php echo $gallery->name?>">Xem</a>
					<a href="<?php echo $this->url->action("delete")?>" class="delete" title="Xóa" data="<?php echo $gallery->id?>">Xóa</a>
					<a href="<?php echo $this->url->action("edit", array($gallery->id))?>" class="edit" title="Sửa">Sửa</a>
					<a href="<?php echo $this->url->action("index", "PControlPanel", array($gallery->id))?>" class="view" title="Ảnh trong thư viện"></a>
				</div>
			</li>
			<?php endforeach;?>
		</ul>
		<!--
		<div class="paging_info">Showing 1 to 15 of 73 images</div>
		<div class="paging_full_numbers" style="margin-right:40px">
			<span class="first paginate_button paginate_button_disabled">First</span>
			<span class="previous paginate_button paginate_button_disabled">Previous</span>
			<span class="paginate_active">1</span>
			<a href="#"><span class="paginate_button">2</span></a>
			<a href="#"><span class="paginate_button">3</span></a>
			<a href="#"><span class="paginate_button">4</span></a>
			<a href="#"><span class="paginate_button">5</span></a>
			<a href="#"><span class="next paginate_button">Next</span></a>
			<a href="#"><span class="last paginate_button">Last</span></a>
		</div>
		-->
		<div class="fclear"></div>
	</div>
</div>
<div id="dialogDelete" style="display: none"></div>
<?php $this->content->end()?>
<?php $this->section->begin("scripts")?>
<?php $this->html->loadJs("Areas/Gallery/Assets/js/index_controlpanel.js")?>
<?php $this->section->end()?>
<?php $this->section->begin("stylesheets")?>
<?php $this->html->loadCss("Areas/Gallery/Assets/css/index_controlpanel.css")?>
<?php $this->section->end()?>